package com.gaojinqi.base.common.exception;

import com.gaojinqi.base.common.constant.RespConst;
import com.gaojinqi.base.common.exception.BizRuntimeException;

/**
 * 认证相关异常
 *
 * @author gaojinqi
 * @version 1.0
 * @since 2020年04月21日
 */
public class AuthException extends BizRuntimeException {

    public AuthException() {
        super(RespConst.RespEnum.UNAUTHORIZED);
    }

    public AuthException(String message) {
        super(RespConst.RespEnum.UNAUTHORIZED.getCode(), message);
    }

    protected AuthException(RespConst.RespEnum respEnum){
        super(respEnum);
    }

}
